<div class="pull_left slider">
    <div class="personal_top y_person_img">
    <?php if(empty($avatar)):?>
        <div>
            <img src="/statics/image/def_avatar.png" alt="默认头像">
        </div>
    <?php else:?>
        <div>
            <img src="<?php echo WxUtil::getGoodsImgUrl($avatar);?>" alt="">
        </div>
    <?php endif;?>
        <p class="com_name"><?php echo Yii::app()->cache->get(Yii::app()->user->getId())?></p>
        <?php  if($this->shipper_type==0&&$this->carry_type==0):?>
        <a href="/user/info" class="renzhen_btn">认证货主／承运人</a>
        <?php endif;?>
    </div>
    <ul class="slider_list">
        <?php if ($this->getController()->shipper_type > 0): ?>
            <li class="tree_list">
                <a href="<?php echo $this->getController()->createUrl('gorder/manage') ?>">
                    <i class="tree_icon fabu"></i>
                    <span>我的发布</span>
                </a>
            </li>
        <?php endif; ?>

        <?php if($this->carry_type!=0):?>
        <li class="tree_list">
            <a href="<?php echo $this->getController()->createUrl('tender/list') ?>">
                <i class="tree_icon baojia"></i>
                <span>我的报价</span>
            </a>
        </li>
        <?php endif; ?>

        <?php  if($this->shipper_type!=0):?>
            <li class="tree_list">
                <a href="<?php echo $this->getController()->createUrl('order/list') ?>">
                    <i class="tree_icon dingdan"></i>
                    <span>我的订单</span>
                </a>
            </li>
        <?php endif; ?>
        <?php if(true) : ?>
<!--           <li class="tree_list">
                <a href="">
                    <i class="tree_icon tubiao"></i>
                    <span>数据统计</span>
                </a>
            </li>  -->
            <li class="tree_list">
                <a href="/message/list">
                    <i class="tree_icon xiaoxi"></i>
                    <span>消息管理</span>
                </a>
            </li>
            <li class="tree_list">
                <a href="">
                    <i class="tree_icon zijin"></i>
                    <span>资金管理</span>
                </a>
            </li>
        <?php endif; ?>
        <li class="tree_list">
            <a href="/user/info">
                <i class="tree_icon geren"></i>
                <span>个人资料</span>
            </a>
            <ul class="tree_second_list hide">
               <!--  <?php //if($this->shipper_type!=0||$this->carry_type!=0):?> -->
                <li>
                    <a href="/user/comment">
                        <i class="tree_icon pingjia"></i>
                        <span>我的评价</span>
                    </a>
                </li>
                <!-- <?php //endif;?> -->
                <!-- <?php //if($this->shipper_type!=0):?> -->
                <li>
                    <a href="/favorite/list">
                        <i class="tree_icon star"></i>
                        <span>我的收藏</span>
                    </a>
                </li>
                <!-- <?php //endif;?> -->

                <?php if($this->shipper_type!=0):?>
                <li>
                    <a href="/address/list">
                        <i class="tree_icon dingwei"></i>
                        <span>收发货人</span>
                    </a>
                </li>
                <?php endif;?>

                <?php if($this->shipper_type!=0):?>
                <li>
                    <a href="/invoice/list">
                        <i class="tree_icon kaipiao"></i>
                        <span>开票信息</span>
                    </a>
                </li>
                <?php endif;?>

                <?php  if($this->carry_type!=0):?>
                <li>
                    <a href="/usercar/list">
                        <i class="tree_icon caricon"></i>
                        <span>车辆管理</span>
                    </a>
                </li>
                <?php endif;?>
                <?php if($this->carry_type!=0):?>
                <li>
                    <a href="/route/list">
                        <i class="tree_icon luxian"></i>
                        <span>常用路线</span>
                    </a>
                </li>
                <?php endif;?>
            </ul>
        </li>
    </ul>
        </li>
    </ul>
</div>
<script>
    $(function () {
        var cm = new commons();
        cm.upload_person_img($('.y_person_img'));
    });

</script>